package com.lvmama.java.rhino.spark.entity;

import java.io.Serializable;

/**
 * 用户信息日志
 * Created by lvzimin on 16/1/11.
 */
public class UserInfoLog implements Serializable {

	private static final long serialVersionUID = -5345740265693109613L;

	/**
     * 用户ID
     */
    public String userId;

    /**
     * 访问IP
     */
    public String ip;

    /**
     * 客户端版本号
     */
    public String lvversion;

    /**
     * 经度
     */
    public String longitude;

    /**
     * 纬度
     */
    public String latitude;

    /**
     * 客户端会话ID
     */
    public String lvsessionid;

    /**
     * 广告渠道
     */
    public String adChannel;

    public String toLogStr(String seperator) {
        StringBuilder builder = new StringBuilder();
        builder.append(userId).append(seperator);
        builder.append(ip).append(seperator);
        builder.append(lvversion).append(seperator);
        builder.append(longitude).append(seperator);
        builder.append(latitude).append(seperator);
        builder.append(lvsessionid).append(seperator);
        builder.append(adChannel).append(seperator);
        return builder.toString();
    }

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getLvversion() {
		return lvversion;
	}

	public void setLvversion(String lvversion) {
		this.lvversion = lvversion;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLvsessionid() {
		return lvsessionid;
	}

	public void setLvsessionid(String lvsessionid) {
		this.lvsessionid = lvsessionid;
	}

	public String getAdChannel() {
		return adChannel;
	}

	public void setAdChannel(String adChannel) {
		this.adChannel = adChannel;
	}

}
